package com.xmy.cultivate.mapper;

import com.xmy.cultivate.entity.StudentForDataType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hpiggy
 * @since 2024-01-08
 */
public interface StudentForDataTypeMapper extends BaseMapper<StudentForDataType> {

    @Select("select id from student_for_data_type where type = ${type} and deleted = 0 limit 1")
    public Long getIdForType(@Param("type") Integer type);
}
